<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="buyjum" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="../../static/css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../static/css/iconfont.css" />

	</head>

	<body>
		<div class="mui-navbar-inner mui-bar mui-bar-nav">
			<button type="button" class="mui-left mui-action-back mui-btn  mui-btn-link mui-btn-nav mui-pull-left">
				<span class="mui-icon mui-icon-left-nav"></span>
			</button>
			<h1 class="mui-center mui-title">添加完成</h1>
		</div>
		<h4>已放入购物车</h4>
		<button id="backtobuy" type="button" class="mui-btn mui-btn-danger">继续购物</button>
		<button id="gotoshopcar" type="button" class="mui-btn mui-btn-danger ">进入购物车</button>
		
		<script src="../../static/js/mui.min.js"></script>
		<script type="text/javascript" charset="UTF-8">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});

			document.getElementById('gotoshopcar').addEventListener('tap',function(){
				mui.openWindow({
					id:'shopcarpage',
					show: {
						aniShow: 'pop-in'
					},
					waiting: {
						autoShow: false
					}
				});
				var main = plus.webview.getWebviewById('shopcarpage').parent();
				mui.fire(main,'goshopcar')
				main.show();
				plus.webview.currentWebview().hide();
			});//整一个超链接范围都是tap点击区，反应更迅速
			document.getElementById('backtobuy').addEventListener('tap',function(){	
						//mui.back();
										mui.openWindow({
							//url: 'http://172.19.254.70:8080/checkaccount',
							url: 'http://192.168.80.105:8080/checkaccount',
					id: 'checkaccount',

							show: {
								aniShow: 'pop-in'
							},
							styles: {
								popGesture: 'hide'
							},
							waiting: {
								autoShow: false
							}
						});
			});		

			//重写back函数，调用index里的自定义函数重置shopcar的reload标志
			var oldback = mui.back;
			mui.back = function(){
				var main = plus.webview.getWebviewById('homepage').parent();
				mui.fire(main,'flashshopcar');
				oldback();
			};	
		</script>
	</body>

</html>